package com.icinema.client;

import java.util.List;

import com.google.gwt.user.client.rpc.AsyncCallback;
import com.icinema.vo.MovieDetail;
import com.icinema.vo.MovieShowing;
import com.icinema.vo.MovieShowingDetail;

public interface MovieServiceAsync {
	public void addMovie(String movieName,String ratingId,AsyncCallback<String> callBack);
	public void getMovies(AsyncCallback<List<MovieDetail>> callBack);
	public void addMovieShowing(MovieShowing movieShowing, AsyncCallback<String> callBack);
	public void getMovieShowings(AsyncCallback<List<MovieShowingDetail>> callBack);
	public void delete(String keyString, AsyncCallback<Void> callback);
	public void deleteShowingMovie(String key, AsyncCallback<Void> callBack);
	public void deleteMovie(String key, AsyncCallback<Message> msg);
	public void getMovieShowings(int duration, AsyncCallback<List<MovieShowingDetail>> callback);	
}